// part1:C15:15.16:Limited_quote.h
// class Limited_quote.
#ifndef LIMITED_H__
#define LIMITED_H__
#include <iostream>
#include "Disc_quote.h" 
class Limited_quote : public Disc_quote
{
public:
    Limited_quote(const string &book = "", double sales_price = 0.0, size_t qty = 0,
        double disc_rate = 0.0):
        Disc_quote(book, sales_price, qty, disc_rate){}
    double net_price(size_t cnt) const override
    {
        if (cnt <= quantity)
        {
            return cnt * (1 - discount) * price;
        }
        else
        {
            return quantity * (1 - discount) * price +
              (cnt - quantity) * price;
        }
    }
private:
    //size_t min_qty;
    //double discount;
};
#endif
